/*
 * foc.h
 *
 *  Created on: 2022.4.15
 *      Author: huan
 */

#ifndef SVPWM_H_
#define SVPWM_H_

typedef union
{
    struct
    {
        float x;
        float y;
    };
    struct
    {
        float T1;
        float T2;
    };
    struct
    {
        float Ia;
        float Ib;
    };
    struct
    {
        float Iq;
        float Id;
    };
    struct
    {
        float Ua;
        float Ub;
    };
    struct
    {
        float Uq;
        float Ud;
    };
}Matrix_F;

void SVPWM(float Uq, float Ud, float angle_E);

#endif /* FOC_H_ */
